
<div class="headlabel"><?php echo $this->__("PRODUCT") ?></div>
<?php
    $_curCate = Mage::registry('current_category');
    $currentCateId = $_curCate->getId();
?>
<?php $categories = $this->getCategoryListOnLeft() ?>

<div class="col-left-2">
    <div class="sidebar">
        <div class="box box-category">
            <h6><?php echo $this->__("SHOP BY CATEGORY") ?></h6>
            <ul>
                <?php if(count($categories)): ?>
                    <?php foreach ($categories as $_cate): ?>
                        <?php $id = $_cate->getId() ?>
                        
                        <?php if($id==$currentCateId): ?>
                            <li><a class="current" href="<?php echo $_cate->getUrl() ?>"><?php echo $_cate->getName() ?></a></li>
                        <?php else: ?>
                            <li><a href="<?php echo $_cate->getUrl() ?>"><?php echo $_cate->getName() ?> </a></li>
                        <?php endif; ?>      
                    <?php endforeach;?>
                <?php endif; ?>
                
            </ul>
        </div>
        <!--
        <div class="box box-brand">
            <h6>SHOP BY BRAND</h6>
            <ul>
                <li><a href="#">Hobart   </a></li>
                <li><a href="#">Butcher Boy </a></li>
                <li><a href="#">Globe </a></li>
                <li><a href="#">Biro </a></li>
                <li><a href="#">Berkel</a></li>
                <li><a href="#">All-American</a></li>
                <li><a href="#">Bizerba</a></li>
                <li><a href="#">Hollymatic   </a></li>
                <li><a href="#">Oliver</a></li>
                <li><a href="#">Regal </a></li>
                <li><a href="#">Mixer Parts</a></li>
                <li><a href="#">Other Manufacturers</a></li>
                <li><a href="#">View All</a></li>
            </ul>
        </div>
        -->
        <?php echo $this->getChildHtml("brand"); ?>
    </div>
</div>        